package net.wsfcp.android.http.mvp.contract;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class FindPasswordContract {

    public interface FindPasswordView {
        String getUserName();

        String getMail();

        String getCode();

        void findPasswordSuccess();

        void findPasswordFail(String failMsg);


        void getImageCodeSuccess(InputStream imageCodeBean) throws IOException;

        void getImageCodeFail(String failMsg);

    }


    public interface FindPasswordPresenter {
        void findPassword(String name, String mail, String code);

        void getImageCode();
    }
}
